//
//  GizConstant.m
//  PhnixHome
//
//  Created by Levy Xu on 2018/3/3.
//  Copyright © 2018年 Levy Xu. All rights reserved.
//

#import "GizConstant.h"

@implementation GizConstant

NSString *const kGizAppID = @"916b4a39e13a4c14b09b05a73fef4136";
NSString *const kGizAppSecret = @"faaab6019e044036be1d6373e8644a3a";
NSString *const kProductKeyAP736R = @"dfc53072b6eb4961912357e729193c95";//R8
NSString *const kProductSecretAP736R = @"ca90b4dac4aa4d28941c54c365563b17";
NSString *const kProductKeyA725R = @"8877eb9731704ad5b3223e02e7d3c481";//i8
NSString *const kProductSecretA725R = @"20e7387d905f41b8a63380ac7c188383";

NSString *const DEFAULT_SITE_DOMAIN = @"site.gizwits.com";
NSString *const DEFAULT_API_DOMAIN = @"api.gizwits.com";

NSString *const kUrlCreatUser = @"http://api.gizwits.com/app/users";

NSString *const kGizDeviceListChangedNotification = @"kGizDeviceListChangedNotification";

+(AFHTTPSessionManager *)gizHTTPManager {
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    manager.requestSerializer = [AFJSONRequestSerializer serializer];
    [manager.requestSerializer setValue:kGizAppID forHTTPHeaderField:@"X-Gizwits-Application-Id"];
    return manager;
}

@end
